﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SaleRank.ascx.cs" Inherits="ECommerce.Web.Site.controls.SaleRank" %>
<script type="text/javascript">
    function goDetail(id)
    {
        window.location.href = "ProductDetail.aspx?ProductID=" + id;
    }
</script>
<div class="salerank">
    <p>
        人气排行榜</p>
    <ul>
        <asp:Repeater ID="rpt" runat="server">
        <ItemTemplate>
            <li class="expansion"><span class="num">
                <div style="position: absolute; 
                    z-index: 1">
                    <div id="div1_<%#Eval("ID") %>" style="position: absolute; top: 0px;">
                    <img src="<%#Eval("SmallImageAbsPath") %>" style="width:94px; height:93px; cursor:pointer" onclick='goDetail(<%#Eval("ID") %>)' />
                     
                    </div>
                </div>
                <a href="javascript://">
                    <%#Eval("Index") %></a></span> <span class="name">
                        <%#Eval("Name") %><br />
                        <b>
                            <%#Eval("CurrentPrice","{0:c2}") %></b></span>
                <div class="clear">
                </div>
        </li>
        </ItemTemplate>        
        </asp:Repeater>       
    </ul>
</div>
